﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 | 系统入口</title>
    <link rel="stylesheet" href="Css/idnex.css" />

</head>
<body>
    
    <div class="theme-toggle" onclick="toggleTheme()">
        <span>🌙</span>
    </div>


    <div class="container">
        <div class="left-panel">
            <h2>欢迎回来</h2>
            <p>登录您的账户，探索更多精彩内容和服务。我们致力于为您提供最佳的体验。</p>
            <div class="graphic"></div>
        </div>

        <div class="right-panel">
            <h2>用户登录</h2>

            <form id="loginForm">
                <div class="form-group">
                    <label for="username">用户名或邮箱</label>
                    <input type="text" id="username" placeholder="请输入用户名或邮箱">
                    <div class="error-message" id="usernameError">请输入有效的用户名或邮箱</div>
                </div>

                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" placeholder="请输入密码">
                    <div class="error-message" id="passwordError">密码必须至少包含6个字符</div>
                </div>

                <div class="remember-forgot">
                    <div class="remember">
                        <input type="checkbox" id="remember">
                        <label for="remember">记住我</label>
                    </div>
                    <a href="#" class="forgot">忘记密码?</a>
                </div>

                <button type="submit" class="login-btn">登录</button>
            </form>

            <div class="separator">或使用社交账号登录</div>

            <div class="social-login">
                <div class="social-btn facebook">f</div>
                <div class="social-btn google">G</div>
                <div class="social-btn twitter">t</div>
            </div>

            <div class="signup-link">
                还没有账户? <a href="#">立即注册</a>
            </div>
        </div>
    </div>

    <script src="Js/index.js"></script>
</body>
</html>